home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C++ / Applications / nanoInstall 1.0 / nanoInstall / nanoInstall.rsrc / DtFk_139 < prev    next >
Encoding:
Text File  |  1996-05-14  |  1.2 KB  |  52 lines

  1. #pragma once
  2.  
  3. #include "standardfile_.h"
  4. //
  5. // standardgetfile is a base class to interface to CustomGetFile
  6. //
  7. // Note for CodeWarriors: if your compiler complains that it can not
  8. // use a struct as a base class for standardgetfile you probably are using
  9. // a precompiled header file generated with the C compiler with this C++
  10. // code. You should recompile them with the C++ compiler, and all should
  11. // be fine.
  12. //
  13. class standardgetfile : public standardfile
  14. {
  15.     public:
  16.         standardgetfile( OSType thetype, short dlogID = sfGetDialogID);
  17.  
  18.         standardgetfile( OSType *thetypes = 0L, long numtypes = -1,
  19.                     short dlogID = sfGetDialogID);
  20.  
  21.         ~standardgetfile();
  22.  
  23.         void changeTypes( OSType *thetypes, long numtypes);
  24.  
  25.         Boolean doIt();
  26.         //
  27.         // Functions to read the list of types accepted by this application,
  28.         // as read from the 'typs' resource #128. Present for use by subclasses.
  29.         //
  30.         const OSType *GetTheTypes() const;
  31.         short GetNumTypes() const;
  32.  
  33.     protected:
  34.  
  35.         OSType        *theTypes;
  36.         long        numTypes;
  37.  
  38.     private:
  39.  
  40.         void setTypes( OSType *thetypes, long numtypes);
  41. };
  42.  
  43. inline const OSType *standardgetfile::GetTheTypes() const
  44. {
  45.     return (OSType * const)theTypes;
  46. }
  47.  
  48. inline short standardgetfile::GetNumTypes() const
  49. {
  50.     return numTypes;
  51. }
  52.